import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "home",
    component: () =>
      import(/* webpackChunkName: "loading1" */ "../views/Home.vue")
  },
  {
    path: "/home",
    name: "home",
    component: () =>
      import(/* webpackChunkName: "loading1" */ "../middleware/middleware.vue"),
    children: [
      {
        path: "/replenishmentPickingList",
        name: "replenishmentPickingList",
        component: () =>
          import(
            /* webpackChunkName: "loading1" */ "../views/replenishmentPickingList.vue"
          )
      },
      {
        path: "/replenishmentPickingDetail",
        name: "replenishmentPickingDetail",
        component: () =>
          import(
            /* webpackChunkName: "loading1" */ "../views/replenishmentPickingDetail.vue"
          )
      },
      {
        path: "/replenishmentDetailList",
        name: "replenishmentDetailList",
        component: () =>
          import(
            /* webpackChunkName: "loading1" */ "../views/replenishmentDetailList.vue"
          )
      },
      {
        path: "/maintenanceReminderNotify",
        name: "maintenanceReminderNotify",
        component: () =>
          import(
            /* webpackChunkName: "loading1" */ "../views/maintenanceReminderNotify.vue"
          )
      },
      {
        path: "/customerPickingDetailed",
        name: "customerPickingDetailed",
        component: () =>
          import(
            /* webpackChunkName: "loading1" */ "../views/customerPickingDetailed.vue"
          )
      },
      {
        path: "/simpleVinDetail",
        name: "simpleVinDetail",
        component: () =>
          import(
            /* webpackChunkName: "loading1" */ "../views/simpleVinDetail.vue"
          )
      },
      {
        path: "/see4sprice",
        name: "see4sprice",
        component: () =>
          import(/* webpackChunkName: "loading1" */ "../views/see4sprice.vue")
      },
      {
        path: "/oilconsumption",
        name: "oilconsumption",
        component: () =>
          import(
            /* webpackChunkName: "oilconsumption" */ "../views/oilconsumption.vue"
          )
      },
      {
        path: "/TransmissionOil",
        name: "TransmissionOil",
        component: () =>
          import(
            /* webpackChunkName: "TransmissionOil" */ "../views/TransmissionOil.vue"
          )
      },
      {
        path: "/airFilterLocationViewer",
        name: "airFilterLocationViewer",
        component: () =>
          import(
            /* webpackChunkName: "airFilterLocationViewer" */ "../views/airFilterLocationViewer.vue"
          )
      },
      {
        path: "/OilChangeFlow",
        name: "OilChangeFlow",
        component: () =>
          import(
            /* webpackChunkName: "OilChangeFlow" */ "../views/OilChangeFlow.vue"
          )
      },
      {
        path: "/consultantReplyReader",
        name: "consultantReplyReader",
        component: () =>
          import(
            /* webpackChunkName: "consultantReplyReader" */ "../views/consultantReplyReader.vue"
          )
      },
      {
        path: "/consultantShoppingCart",
        name: "consultantShoppingCart",
        component: () =>
          import(
            /* webpackChunkName: "consultantShoppingCart" */ "../views/consultantShoppingCart.vue"
          )
      },
      {
        path: "/consultantOrderList",
        name: "consultantOrderList",
        component: () =>
          import(
            /* webpackChunkName: "consultantOrderList" */ "../views/consultantOrderList.vue"
          )
      },
      {
        path: "/consultantOrderDetail",
        name: "consultantOrderDetail",
        component: () =>
          import(
            /* webpackChunkName: "consultantOrderDetail" */ "../views/consultantOrderDetail.vue"
          )
      },
      {
        path: "/installationVideoReader",
        name: "installationVideoReader",
        component: () =>
          import(
            /* webpackChunkName: "installationVideoReader" */ "../views/installationVideoReader.vue"
          )
      },
      {
        path: "/partItemDetail",
        name: "partItemDetail",
        component: () =>
          import(
            /* webpackChunkName: "partItemDetail" */ "../views/partItemDetail.vue"
          )
      }
    ]
  }
];

const router = new VueRouter({
  routes
});

export default router;
